package com.xkdx.guangguang.presistence.getgoods;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.guangguang.module.network.AbsAction;
import com.xkdx.guangguang.module.statics.IConstants;

public class GetGoodsAction extends AbsAction {
	String userid, loginToken, type, exchange_code;

	public GetGoodsAction(String userid, String loginToken, String type,
			String exchange_code) {
		this.url=IConstants.INFO_URL;
		this.userid = userid;
		this.loginToken = loginToken;
		this.type = type;
		this.exchange_code = exchange_code;
	}

	@Override
	public void constructRequest() {
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("UserID", userid);
		map.put("LoginToken", loginToken);
		map.put("Type", type);
		map.put("Exchange_Code", exchange_code);
		String json = constructJson(map);
		Parameter parameter = new Parameter("payChapterAction",
				"payListItemCheck", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);

	}

}
